/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session.stateless;

import entity.Job;
import entity.PurchaseItem;
import entity.PurchaseOrder;
import entity.SalesOrder;
import entity.TrackingItem;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Wx
 */
@Remote
public interface SalesOrderSessionBeanRemote {
    
    public List<SalesOrder> getSalesOrders();
    
    public List<SalesOrder> getSalesOrdersByCustomer(Long custId);
    
    public SalesOrder getSalesOrderByPO(Long id);
    
    public void updateSalesOrder(Long id, TrackingItem ti);

    public List<PurchaseItem> getPurchaseItemsByStatus(String status);

    public PurchaseOrder getPurchaseOrderByPurchaseItem(Long id);

    public List<PurchaseOrder> getPurchaseOrders(String status);

    public List<SalesOrder> getSalesOrders(String status);

    public List<PurchaseOrder> getPurchaseOrders(Long customerId, String status);

    public List<PurchaseOrder> getPurchaseOrders(String userId, String status);

    public void addSalesOrder(Long jobId, String creditCheck, String atpCheck, String status, String remark);

    public void updateQuotation(Long id, String status);

    public void updateSalesOrder(Long id, String status);

    public ArrayList<Job> getJobs(Integer selectedMonth, Integer selectedYear, String productCode);

    public void failSalesOrderCreditCheck(Long id);

    public void passSalesOrderCreditCheck(Long id);

    public ArrayList<SalesOrder> getSalesOrders(String userId, String status);

    public SalesOrder getSalesOrder(Long id);
}
